package com.jz.netthings.bloodsources.bean;

import lombok.Data;

import java.io.Serializable;

@Data
public class XyVolunteeDetailInfo implements Serializable {
    public static boolean isSum = false;
    public static  Integer sumvTotal;     //义工数
    public static  Integer sumpTotal;     //浆员数
    public static  Integer n1;     //合计数
    public static  Integer n2;     //合计数
    public static  Integer n3;     //合计数
    public static  Integer n4;     //合计数
    public static  Integer n5;     //合计数
    public static  Integer n6;     //合计数
    public static  Integer n7;     //合计数
    public static  Integer n8;     //合计数
    public static  Integer n9;     //合计数
    public static  Integer n10;     //合计数
    public static  Integer n11;     //合计数
    public static  Integer n12;     //合计数
    public static  Integer n13;     //合计数
    public static  Integer n14;     //合计数
    public static  Integer n15;     //合计数
    public static  Integer n16;     //合计数
    public static  Integer n17;     //合计数
    public static  Integer n18;     //合计数
    public static  Integer n19;     //合计数
    public static  Integer n20;     //合计数
    public static  Integer n21;     //合计数
    public static  Integer n22;     //合计数
    public static  Integer n23;     //合计数
    public static  Integer n24;     //合计数
    public static  Integer n25;     //合计数
    public static  Integer n26;     //合计数
    public static  Integer upTotal;     //截止上轮总数

    private String useNurseId;          //护士ID
    private String useVolunteeId;       //义工ID
    private String linkProviderId;      //浆员ID
    private String useVolunteeName;     //义工姓名
    private String linkProviderName;    //浆员姓名
    private String address;             //浆员地址
    private String roundIdx;            //献浆轮次 用,做分割
    private String total;               //截止上轮总数
    private String round1;
    private String round2;
    private String round3;
    private String round4;
    private String round5;
    private String round6;
    private String round7;
    private String round8;
    private String round9;
    private String round10;
    private String round11;
    private String round12;
    private String round13;
    private String round14;
    private String round15;
    private String round16;
    private String round17;
    private String round18;
    private String round19;
    private String round20;
    private String round21;
    private String round22;
    private String round23;
    private String round24;
    private String round25;
    private String round26;

    public static Integer getUpTotal() {
        return upTotal;
    }

    public static void setUpTotal(Integer upTotal) {
        XyVolunteeDetailInfo.upTotal = upTotal;
    }

    public static Integer getSumpTotal() {
        return sumpTotal;
    }

    public static void setSumpTotal(Integer sumpTotal) {
        XyVolunteeDetailInfo.sumpTotal = sumpTotal;
    }

    public static Integer getSumvTotal() {
        return sumvTotal;
    }

    public static void setSumvTotal(Integer sumvTotal) {
        XyVolunteeDetailInfo.sumvTotal = sumvTotal;
    }

    public String getUseVolunteeName() {
        if(isSum){
            return  useVolunteeName;
        }else{
            return useVolunteeName+"("+this.useVolunteeId+")";
        }
    }

    public void setUseVolunteeName(String useVolunteeName) {
        this.useVolunteeName = useVolunteeName;
    }

    public String getLinkProviderName() {
        if (isSum){
            return  linkProviderName;
        }else{
            return linkProviderName+"("+this.linkProviderId+")";
        }
    }

    public void setLinkProviderName(String linkProviderName) {
        this.linkProviderName = linkProviderName;
    }

    public String getRoundIdx() {
        return roundIdx;
    }
    public void setRoundIdx(String roundIdx) {
        XyVolunteeDetailInfo.sumpTotal = XyVolunteeDetailInfo.sumpTotal==null?1:XyVolunteeDetailInfo.sumpTotal+1;
        if(roundIdx!=null && !"".equals(roundIdx)){
            String []  roundArray = roundIdx.split(",");
            for (String roundId: roundArray) {
                setValForRound(roundId);
            }
        }else{
        }
        this.roundIdx = roundIdx;
    }
    public void setValForRound( String switchStr){
        switch (switchStr){
            case "1":
                this.round1="√";XyVolunteeDetailInfo.n1 = XyVolunteeDetailInfo.n1==null?1:XyVolunteeDetailInfo.n1+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "2":
                this.round2="√";XyVolunteeDetailInfo.n2 = XyVolunteeDetailInfo.n2==null?1:XyVolunteeDetailInfo.n2+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "3":
                this.round3="√";XyVolunteeDetailInfo.n3 = XyVolunteeDetailInfo.n3==null?1:XyVolunteeDetailInfo.n3+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "4":
                this.round4="√";XyVolunteeDetailInfo.n4 = XyVolunteeDetailInfo.n4==null?1:XyVolunteeDetailInfo.n4+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "5":
                this.round5="√";XyVolunteeDetailInfo.n5 = XyVolunteeDetailInfo.n5==null?1:XyVolunteeDetailInfo.n5+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "6":
                this.round6="√";XyVolunteeDetailInfo.n6 = XyVolunteeDetailInfo.n6==null?1:XyVolunteeDetailInfo.n6+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "7":
                this.round7="√";XyVolunteeDetailInfo.n7 = XyVolunteeDetailInfo.n7==null?1:XyVolunteeDetailInfo.n7+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "8":
                this.round8="√";XyVolunteeDetailInfo.n8 = XyVolunteeDetailInfo.n8==null?1:XyVolunteeDetailInfo.n8+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "9":
                this.round9="√";XyVolunteeDetailInfo.n9 = XyVolunteeDetailInfo.n9==null?1:XyVolunteeDetailInfo.n9+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "10":
                this.round10="√";XyVolunteeDetailInfo.n10 = XyVolunteeDetailInfo.n10==null?1:XyVolunteeDetailInfo.n10+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "11":
                this.round11="√";XyVolunteeDetailInfo.n11 = XyVolunteeDetailInfo.n11==null?1:XyVolunteeDetailInfo.n11+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "12":
                this.round12="√";XyVolunteeDetailInfo.n12 = XyVolunteeDetailInfo.n12==null?1:XyVolunteeDetailInfo.n12+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "13":
                this.round13="√";XyVolunteeDetailInfo.n13 = XyVolunteeDetailInfo.n13==null?1:XyVolunteeDetailInfo.n13+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "14":
                this.round14="√";XyVolunteeDetailInfo.n14 = XyVolunteeDetailInfo.n14==null?1:XyVolunteeDetailInfo.n14+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "15":
                this.round15="√";XyVolunteeDetailInfo.n15 = XyVolunteeDetailInfo.n15==null?1:XyVolunteeDetailInfo.n15+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "16":
                this.round16="√";XyVolunteeDetailInfo.n16 = XyVolunteeDetailInfo.n16==null?1:XyVolunteeDetailInfo.n16+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "17":
                this.round17="√";XyVolunteeDetailInfo.n17 = XyVolunteeDetailInfo.n17==null?1:XyVolunteeDetailInfo.n17+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "18":
                this.round18="√";XyVolunteeDetailInfo.n18 = XyVolunteeDetailInfo.n18==null?1:XyVolunteeDetailInfo.n18+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "19":
                this.round19="√";XyVolunteeDetailInfo.n19 = XyVolunteeDetailInfo.n19==null?1:XyVolunteeDetailInfo.n19+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "20":
                this.round20="√";XyVolunteeDetailInfo.n20 = XyVolunteeDetailInfo.n20==null?1:XyVolunteeDetailInfo.n20+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "21":
                this.round21="√";XyVolunteeDetailInfo.n21 = XyVolunteeDetailInfo.n21==null?1:XyVolunteeDetailInfo.n21+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "22":
                this.round22="√";XyVolunteeDetailInfo.n22 = XyVolunteeDetailInfo.n22==null?1:XyVolunteeDetailInfo.n22+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "23":
                this.round23="√";XyVolunteeDetailInfo.n23 = XyVolunteeDetailInfo.n23==null?1:XyVolunteeDetailInfo.n23+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "24":
                this.round24="√";XyVolunteeDetailInfo.n24 = XyVolunteeDetailInfo.n24==null?1:XyVolunteeDetailInfo.n24+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "25":
                this.round25="√";XyVolunteeDetailInfo.n25= XyVolunteeDetailInfo.n25==null?1:XyVolunteeDetailInfo.n25+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            case "26":
                this.round26="√";XyVolunteeDetailInfo.n26 = XyVolunteeDetailInfo.n26==null?1:XyVolunteeDetailInfo.n26+1; XyVolunteeDetailInfo.upTotal = XyVolunteeDetailInfo.upTotal==null?1:XyVolunteeDetailInfo.upTotal+1;break;
            default:;
        }
    }
    public static void initClearnStaticConst(){
        XyVolunteeDetailInfo.sumpTotal=null;
        XyVolunteeDetailInfo.sumvTotal=null;
        XyVolunteeDetailInfo.upTotal=null;
        XyVolunteeDetailInfo.n1=null;
        XyVolunteeDetailInfo.n2=null;
        XyVolunteeDetailInfo.n3=null;
        XyVolunteeDetailInfo.n4=null;
        XyVolunteeDetailInfo.n5=null;
        XyVolunteeDetailInfo.n6=null;
        XyVolunteeDetailInfo.n7=null;
        XyVolunteeDetailInfo.n8=null;
        XyVolunteeDetailInfo.n9=null;
        XyVolunteeDetailInfo.n10=null;
        XyVolunteeDetailInfo.n11=null;
        XyVolunteeDetailInfo.n12=null;
        XyVolunteeDetailInfo.n13=null;
        XyVolunteeDetailInfo.n14=null;
        XyVolunteeDetailInfo.n15=null;
        XyVolunteeDetailInfo.n16=null;
        XyVolunteeDetailInfo.n17=null;
        XyVolunteeDetailInfo.n18=null;
        XyVolunteeDetailInfo.n19=null;
        XyVolunteeDetailInfo.n20=null;
        XyVolunteeDetailInfo.n21=null;
        XyVolunteeDetailInfo.n22=null;
        XyVolunteeDetailInfo.n23=null;
        XyVolunteeDetailInfo.n24=null;
        XyVolunteeDetailInfo.n25=null;
        XyVolunteeDetailInfo.n26=null;
    };
}
